//
//  PurchaseManager.h
//  ChatForHot
//
//  Created by wr on 2018/10/18.
//  Copyright © 2018年 FLY. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PersonalVipInfoModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, HOTCHATPurchType) {
    HOTCHATPurchSuccess = 0,//成功
    HOTCHATPurchFailed = 1,//失败
    HOTCHATPurchCancle = 2,//取消
    HOTCHATPurchVerFailed = 3,//订单校验失败
    HOTCHATPurchVerSuccess = 4,//订单校验成功
    HOTCHATPurchNotArrow = 5,//不允许内购
};

typedef void (^HOTCHATCompletionHandle)(HOTCHATPurchType type,NSData *data);

@interface PurchaseManager : NSObject

+ (instancetype)shareInstance;

- (void)startPurchWithID:(NSString *)purchID model:(PersonalVipInfoModel *)model completeHandle:(HOTCHATCompletionHandle)handle;
@end

NS_ASSUME_NONNULL_END
